package org.lisa.crm.task;

import org.lisa.crm.service.TaskScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * Created by Administrator on 2018/2/6.
 */
/*
因为我们配置了包扫描  使用Component注解声明
 */
@Component
public class TaskSchedule {

    @Autowired
    private TaskScheduleService taskScheduleService;


    public void job1(){
        System.out.println("任务1:"+new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()));
    }

}
